<!--
 * @Author: ray ray.chin@163.com
 * @Date: 2023-04-07 09:54:36
 * @LastEditors: ray ray.chin@163.com
 * @LastEditTime: 2024-06-10 12:07:05
 * @FilePath: /app-template-uni-upgrade/src/pages/web-view-custom/web-view-custom.vue
 * @Description: 浏览器
 * 注册
    {
        "path": "pages/web-view-custom/web-view-custom",
        "style": {
            "navigationBarTitleText": "网页工具",
            "navigationStyle": "custom"
        }
    }
 * 使用说明
    let url = encodeURIComponent("https://www.baidu.com");
    console.log(url);
    uni.navigateTo({
        url: `/pages/web-view-custom/web-view-custom?url=${url}`,
    });
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
-->
<template>
    <view class="main">
        <web-view :src="url"></web-view>
    </view>
</template>
<script>

export default {
    name: "web-view-custom",
    components: {
    },
    data() {
        return {
            url: "",
        }
    },
    onNavigationBarButtonTap(e) {},
    onLoad(option) {
        let __this = this;
        __this.url = decodeURIComponent(option.url)
        console.log(__this.url)
        // 传入需要跳转的链接 使用web-view标签进行跳转
    },
    created() {
    },
    onShow() {
    },
    onHide() {
    },
    methods: {

    },
}
</script>
<style lang="scss" scoped>
uni-page-body {
    width: 100vw;
    overflow: hidden;
    background: #fff;
}

.main {
    height: 100%;
    width: 100%;
}
</style>
